﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;


namespace WebApi101.Data.Models
{
    public class Todo : AuditObject
    {

        [Key]
        public int TodoId { get; set; }
        public string Text { get; set; }
        public bool IsCompleted { get; set; }
        [Required]
        public string UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual ApplicationUser User { get; set; }

        public string City { get; set; }
    }
}
